{% extends "_layout.html" %}
{% import "component/statistics.njk" as statistics %}

{# 样式代码 #}
{% block style %}
<title>用户详情</title>
{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="mui-content">
    <!--用户昵称、头像、等级、积分-->
    <div class="bbs-user-top xw-border-bottom">
        <a class="bbs-user-info mui-clearfix" href="#">
            <img class="bbs-user-photo mui-pull-left" src="{{ctx.app.config.api.image}}/{{user.headImageUrl}}"/>
            <div class="mb-nick-name mui-pull-left">
                <b class="mb-nickname mui-ellipsis">{{user.name}}</b>
                <!--<p class="mb-arr-time"><span>教育达人</span><span>积分:6325</span></p>-->
            </div>
            <!--<span class="bbs-interaction-btn mui-pull-right"><input type="button" name="cancel" id="" value="关注" /></span>-->
        </a>
    </div>
    <p class="bbs-post-count">{{post.totalCount}} 篇发帖</p>
    <!--帖子循环主体开始-->
    {%for item in post.list%}
    <div class="mb-post-list-3 xw-border-bottom1">
        {%if item.typeName == 2%}
        <a href="askquestions?id={{item.id}}">
            {%else%}
            <a href="postdetail?id={{item.id}}">
        {%endif%}
            <h4 class="mui-ellipsis-2">{{item.title}}</h4>
            <div class="mb-post-imgs">
                <ul class="mui-clearfix">
                    {%for item2 in item.images%}
                    <li><img src="{{ctx.app.config.api.image}}/{{item2}}"></li>
                    {%endfor%}
                </ul>
            </div>
        </a>
        <p class="bbs-operaton bbs-operaton1 mui-clearfix">
            <span class="mui-pull-left"><i class="iconfont icon-zan"></i>{{item.postLikeCount}}</span>
            <span class="mui-pull-left"><i class="iconfont icon-xiaoxi"></i>{{item.commentCount}}</span>
            <span class="mui-pull-right">来自逢考必过秘籍社区</span>
        </p>
    </div>
    <!--帖子循环主体结束-->
    {%endfor%}
</div>
{% endblock %}

{#js代码#}
{% block js %}

<!--flotdemo-->
{% endblock %}



